//创建路由规则
import { createRouter, createWebHistory } from 'vue-router'
const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      redirect:"/ZhuceView",
    },
    {
      path: '/ZhuceView',
      component: () => import('../views/ZhuceView.vue')
    },
    {
      path: '/LoginView',
      component: () => import('../views/LoginView.vue')
    },
    {
      path: '/XinxiView',
      component: () => import('../views/XinxiView.vue')
    },
    {
      path: '/UserView',
      component: () => import('../views/UserView.vue')
    },
    {
      path: '/AdminView',
      component: () => import('../views/AdminView.vue')
    },
    {
      path: "/UpdateView/jid:jid",
      name: 'UpdateView',
      component: () => import('../views/UpdateView.vue')
    },    {
      path: '/MingxiView',
      component: () => import('../views/MingxiView.vue')
    }


    
  ]
})

//导出路由规则
export default router 

